package cn.wsalix.user.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.anlaser.entity.CommonEntity;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "ADDRESS")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Data
@EqualsAndHashCode(callSuper = false)
public class Address extends CommonEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5230492107459406816L;
	private Long userId;

	private boolean sure;
	private String contacts;
	private String phone;
	private String province;//district
	private String street;
	private String address;
}
